import request from '@/utils/request'

// 查询监控建筑分组列表
export function listModelbuildgroup(query) {
  return request({
    url: '/ruoyi-device/modelbuildgroup/list',
    method: 'get',
    params: query
  })
}

// 查询监控建筑分组详细
export function getModelbuildgroup(id) {
  return request({
    url: '/ruoyi-device/modelbuildgroup/' + id,
    method: 'get'
  })
}

// 新增监控建筑分组
export function addModelbuildgroup(data) {
  return request({
    url: '/ruoyi-device/modelbuildgroup',
    method: 'post',
    data: data
  })
}

// 修改监控建筑分组
export function updateModelbuildgroup(data) {
  return request({
    url: '/ruoyi-device/modelbuildgroup',
    method: 'put',
    data: data
  })
}

// 删除监控建筑分组
export function delModelbuildgroup(id) {
  return request({
    url: '/ruoyi-device/modelbuildgroup/' + id,
    method: 'delete'
  })
}
